<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: zjd
  Date: 2020/8/17
  Time: 10:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>News Single Page</title>
    <!-- for-mobile-apps -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name=""/>
    <!-- //for-mobile-apps -->
    <link href="${pageContext.request.contextPath}/front-style/css/bootstrap.css" rel="stylesheet" type="text/css" media="all"/>
    <!-- pop-up -->
    <link href="${pageContext.request.contextPath}/front-style/css/popuo-box.css" rel="stylesheet" type="text/css" media="all"/>
    <!-- //pop-up -->
    <link href="${pageContext.request.contextPath}/front-style/css/easy-responsive-tabs.css" rel='stylesheet' type='text/css'/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/front-style/css/common.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/front-style/css/layui.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/front-style/css/moviehouse-list.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/front-style/css/zoomslider.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/front-style/css/style.css"/>
    <link href="${pageContext.request.contextPath}/front-style/css/font-awesome.css" rel="stylesheet">
    <script type="text/javascript" src="${pageContext.request.contextPath}/front-style/js/modernizr-2.6.2.min.js"></script>
    <!--/web-fonts-->
    <link href='http://fonts.googleapis.com/css?family=Tangerine:400,700' rel='stylesheet' type='text/css'>
    <link href="http://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
    <!--//web-fonts-->
    <style>
        .container .list li {
            width: 100%;
            height: 52px;
            border-bottom: 1px dashed #a5a5a5;
            padding: 12px 0;
            color: whitesmoke;
            font-size: 15px;
            position: relative;
        }
        li {
            display: list-item;
            text-align: -webkit-match-parent;
        }
        ul {
            list-style: none;
        }
        body {
            width: 100%;
            font-family: 微软雅黑;
        }
    </style>
</head>
<body>
<!--/main-header-->
<!--/banner-section-->
<div id="demo-1" class="banner-inner">
    <div class="banner-inner-dott">
        <!--/header-w3l-->
        <div class="header-w3-agileits" id="home">
            <div class="inner-header-agile part2">
                <nav class="navbar navbar-default">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse"
                                data-target="#bs-example-navbar-collapse-1">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <h1><a href="${pageContext.request.contextPath}/index.jsp"><span>M</span>ovies <span>P</span>ro</a></h1>
                    </div>
                    <!-- navbar-header -->
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    </div>
                    <div class="clearfix"></div>
                </nav>
                <div class="w3ls_search">
                    <div class="cd-main-header">
                        <ul class="cd-header-buttons">
                            <li><a class="cd-search-trigger" href="#cd-search"> <span></span></a></li>
                        </ul> <!-- cd-header-buttons -->
                    </div>
                    <div id="cd-search" class="cd-search">
                        <form action="#" method="post">
                            <input name="Search" type="search" placeholder="Search...">
                        </form>
                    </div>
                </div>

            </div>

        </div>
        <!--//header-w3l-->
    </div>
</div>
<!--/banner-section-->
<!--//main-header-->
<!--/banner-bottom-->
<div class="w3_agilits_banner_bootm">
    <div class="w3_agilits_inner_bottom">
        <div class="col-md-6 wthree_agile_login">
            <%--显示跳转条--%>
            <c:if test="${sessionScope.userinfo!=null}">
                <ul>
                    <li><i class="fa fa-phone" aria-hidden="true"></i> (+000) 009 455 4088</li>
                    <li><div style="width: 20px"></div></li>
                    <li><img style="height: 40px;width: 40px;margin-top: -10px" src="${pageContext.request.contextPath}/DownloadFileServlet?fileName=${sessionScope.userinfo.user_img}" alt="头像"></li>
                    <li><div style="width: 20px"></div></li>
                    <li><i>${sessionScope.userinfo.user_acount}</i></li>
                    <li><div style="width: 20px"></div></li>
                    <li><a href="javascript:void(0)" class="login" data-toggle="modal" data-target="#myModall6">个人中心</a></li>
                    <li><a class="login" href="${pageContext.request.contextPath}/userinfo/exit">退出</a></li>
                    <c:if test="${sessionScope.userinfo!=null}">
                        <li><a class="login" href="${pageContext.request.contextPath}/orders/toOrderList">订单列表</a></li>
                    </c:if>
                </ul>
            </c:if>
            <c:if test="${sessionScope.userinfo==null}">
                <ul>
                    <li><i class="fa fa-phone" aria-hidden="true"></i> (+000) 009 455 4088</li>
                    <li><a href="javascript:void(0)" class="login"  data-toggle="modal" data-target="#myModal4">登录</a></li>
                        <%--<li><a href="javascript:void(0)" class="login reg"  data-toggle="modal" data-target="#myModal5">注册</a></li>--%>

                </ul>
            </c:if>
        </div>
        <div class="col-md-6 wthree_share_agile">

           </div>
    </div>
</div>
<!--//banner-bottom-->
<!-- Modal1 -->
<div class="modal fade" id="myModal4" tabindex="-1" role="dialog">

    <div class="modal-dialog">
        <!-- Modal content-->
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4>登录</h4>
                <div class="login-form">
                    <form action="${pageContext.request.contextPath}/userinfo/login" method="post">
                        <input type="text" name="user_acount" placeholder="账号" required="">
                        <input type="password" name="user_password" placeholder="密码" required="">
                        <div class="tp">
                            <input type="submit" value="LOGIN NOW">
                        </div>
                        <div class="forgot-grid">
                            <div class="log-check">
                                <label class="checkbox"><input type="checkbox" name="checkbox">Remember me</label>
                            </div>
                            <div class="forgot">
                                <a href="javascript:void(0)" data-toggle="modal" data-target="#myModal2">Forgot Password?</a>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- //Modal1 -->
<!-- Modal1 -->
<div class="modal fade" id="myModal5" tabindex="-1" role="dialog">

    <div class="modal-dialog">
        <!-- Modal content-->
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4>Register</h4>
                <div class="login-form">
                    <form action="#" method="post">
                        <input type="text" name="name" placeholder="Name" required="">
                        <input type="email" name="email" placeholder="E-mail" required="">
                        <input type="password" name="password" placeholder="Password" required="">
                        <input type="password" name="conform password" placeholder="Confirm Password" required="">
                        <div class="signin-rit">
														<span class="agree-checkbox">
														<label class="checkbox"><input type="checkbox" name="checkbox">I agree to your <a
                                                                class="w3layouts-t" href="javascript:void(0)" target="_blank">Terms of Use</a> and <a
                                                                class="w3layouts-t" href="javascript:void(0)" target="_blank">Privacy Policy</a></label>
													</span>
                        </div>
                        <div class="tp">
                            <input type="submit" value="REGISTER NOW">
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- //Modal1 -->
<!-- breadcrumb -->
<div class="w3_breadcrumb">
    <div class="breadcrumb-inner">
        <ul>
            <li><a href="${pageContext.request.contextPath}/index.jsp">主页</a><i>//</i></li>
            <li>购票</li>
        </ul>
    </div>
</div>
<!-- //breadcrumb -->
<div class="container">
<h1><i></i>票务明细</h1>
    <span class="layui-breadcrumb" style="visibility: visible;" lay-separator="—">
  <a href="javascript:void(0)" style="color: yellowgreen" onclick="changeDay(this)" class="days_a">今日</a><span lay-separator=""  style="color: #6B757E">—</span>
  <a href="javascript:void(0)" style="color: #6B757E" onclick="changeDay(this)" class="days_a">明日</a><span lay-separator=""  style="color: #6B757E">—</span>
  <a href="javascript:void(0)" style="color: #6B757E" onclick="changeDay(this)" class="days_a">后日</a>
</span>
    <%--显示场次--%>
<ul class="list" id="show_list">

</ul>
</div>
<!--//content-inner-section-->


<!--/footer-bottom-->
<div class="contact-w3ls" id="contact">
    <div class="footer-w3lagile-inner">
        <h2><span>下次一定影院在线系统</span></h2>
        <p class="para">不要下次一定,这就是一定.</p>
        <div class="footer-grids w3-agileits">
            <div class="col-md-2 footer-grid">
                <h4>广告位</h4>
                <ul>
                    <li><a href="javascript:void(0)">广告位招租</a></li>
                    <li><a href="javascript:void(0)">广告位招租</a></li>
                    <li><a href="javascript:void(0)">广告位招租</a></li>
                    <li><a href="javascript:void(0)">广告位招租</a></li>
                    <li><a href="javascript:void(0)">广告位招租</a></li>
                    <li><a href="javascript:void(0)">广告位招租</a></li>
                </ul>
            </div>
            <div class="col-md-2 footer-grid">
                <h4>广告位</h4>
                <ul>

                    <li><a href="javascript:void(0)">广告位招租</a></li>
                    <li><a href="javascript:void(0)">广告位招租</a></li>
                    <li><a href="javascript:void(0)">广告位招租</a></li>
                    <li><a href="javascript:void(0)">广告位招租</a></li><li><a href="javascript:void(0)">广告位招租</a></li>
                    <li><a href="javascript:void(0)">广告位招租</a></li>



                </ul>
            </div>


            <div class="col-md-2 footer-grid">
                <h4>合作单位</h4>
                <ul class="w3-tag2">
                    <li><a href="javascript:void(0)">合作单位1</a></li>
                    <li><a href="javascript:void(0)">合作单位2</a></li>
                    <li><a href="javascript:void(0)">合作单位3</a></li>
                    <li><a href="javascript:void(0)">合作单位4</a></li>
                    <li><a href="javascript:void(0)">合作单位5</a></li>
                    <li><a href="javascript:void(0)">合作单位6</a></li>
                    <li><a href="javascript:void(0)">合作单位7</a></li>
                </ul>


            </div>
            <div class="col-md-2 footer-grid">
                <h4>合作院线</h4>
                <div class="footer-grid1">
                    <div class="footer-grid1-left">
                        <a href="javascript:void(0)"><img src="${pageContext.request.contextPath}/front-style/images/1.jpg" alt=" " class="img-responsive"></a>
                    </div>
                    <div class="footer-grid1-right">
                        <a href="javascript:void(0)">左侧放logo,右侧是名字</a>

                    </div>
                    <div class="clearfix"> </div>
                </div>
            </div>
            <div class="col-md-2 footer-grid">
                <h4 class="b-log"><a href="${pageContext.request.contextPath}/index.jsp"><span>我</span>的 <span>院</span>线</a></h4>

                <div class="clearfix"> </div>
            </div>
            <div class="clearfix"> </div>
            <ul class="bottom-links-agile">
                <li><a href="javascript:void(0)" title="Font Icons" class="aiguo">民主</a></li>
                <li><a href="javascript:void(0)" title="Short Codes" class="aiguo">富强</a></li>
                <li><a href="javascript:void(0)" title="contact" class="aiguo">爱国</a></li>

            </ul>
        </div>


    </div>

</div>
<div class="w3agile_footer_copy">
    <p>制作团队 &copy; 四期三阶段.严宇 赵井东 陆亮.<a target="_blank" href="http://www.baidu.com/">有问题问百度</a></p>
</div>
<a href="#home" id="toTop" class="scroll" style="display: block;"> <span id="toTopHover"
                                                                         style="opacity: 1;"> </span></a>

<%--<script src="${pageContext.request.contextPath}/front-style/js/jquery-1.11.1.min.js"></script>--%>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<!-- Dropdown-Menu-JavaScript -->
<script>
    $(document).ready(function () {
        $(".dropdown").hover(
            function () {
                $('.dropdown-menu', this).stop(true, true).slideDown("fast");
                $(this).toggleClass('open');
            },
            function () {
                $('.dropdown-menu', this).stop(true, true).slideUp("fast");
                $(this).toggleClass('open');
            }
        );
    });
</script>
<!-- //Dropdown-Menu-JavaScript -->
<!-- search-jQuery -->
<script src="${pageContext.request.contextPath}/front-style/js/main.js"></script>

<script src="${pageContext.request.contextPath}/front-style/js/simplePlayer.js"></script>

<!-- pop-up-box -->
<script src="${pageContext.request.contextPath}/front-style/js/jquery.magnific-popup.js" type="text/javascript"></script>
<!--//pop-up-box -->

<div id="small-dialog1" class="mfp-hide">
    <iframe src=""></iframe>
</div>
<div id="small-dialog2" class="mfp-hide">
    <iframe src=""></iframe>
</div>

<link href="${pageContext.request.contextPath}/front-style/css/owl.carousel.css" rel="stylesheet" type="text/css" media="all">
<script src="${pageContext.request.contextPath}/front-style/js/owl.carousel.js"></script>
<script>
    $(document).ready(function () {
        $("#owl-demo").owlCarousel({

            autoPlay: 3000, //Set AutoPlay to 3 seconds
            autoPlay: true,
            navigation: true,

            items: 5,
            itemsDesktop: [640, 4],
            itemsDesktopSmall: [414, 3]

        });

    });
</script>

<!--/script-->
<script type="text/javascript" src="${pageContext.request.contextPath}/front-style/js/move-top.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/front-style/js/easing.js"></script>

<script type="text/javascript">
    jQuery(document).ready(function ($) {
        $(".scroll").click(function (event) {
            event.preventDefault();
            $('html,body').animate({scrollTop: $(this.hash).offset().top}, 900);
        });
    });
</script>
<!--end-smooth-scrolling-->
<script src="${pageContext.request.contextPath}/front-style/js/bootstrap.js"></script>
</body>

<script src="${pageContext.request.contextPath}/front-style/js/common.js"></script>
<script>
    var movno=${requestScope.go_movieNo};
    var days=0;
    $(function () {
        //显示当天票
        showShowing(movno,days);

        $(".aiguo").click(function(){
            alert("你真棒!!!发现彩蛋,去吧台给你优惠")
        });

    });
    function goTickets(showing_no) {
        if(${sessionScope.userinfo!=null}){ location.href="${pageContext.request.contextPath}/PayController/goTickets?showsNo="+showing_no;
        }else{
            $("#myModal4").modal("show");
        }
    };

    function changeDay(obj){
        $(".days_a").attr("style","color: #6B757E");
        $(obj).attr("style","color: yellowgreen");
        var index=0;
        if ( $(obj).text() == "明日"){
            index=1;
        }
        if ( $(obj).text() == "后日"){
            index=2;
        }
        showShowing(movno,index);
    }

    function showShowing(movno,days) {
        $.ajax({
            async:true,
            url:"${pageContext.request.contextPath}/PayController/getShowings",
            data:{mov_no:parseInt(movno),day:parseInt(days)},
            dataType:"json",
            success:function (result) {
                $("#show_list").empty();
                var content="";
                $.each(result,function(n,shows){
                    content+=" <li style=\"color: #0a7362\">"+shows.movies.movieName+"("+shows.cinemas.cinema_name+":"+shows.showing_date.substring(0,shows.showing_date.length-2)+")<br><span></span>\n" +
                        "        <div class=\"much\">￥\n" +
                        "            <b>"+shows.movies.moviePrice+"</b>\n" +
                        "            <a href=\"javascript:goTickets("+shows.showing_no+")\"><button type=\"button\" style=\"line-height: 30px;height: 30px\">选座购票</button></a>\n" +
                        "        </div>\n" +
                        "    </li>\n";
                });
                $("#show_list").html(content);
            }
        });
    }
</script>
</html>